<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2022-10-28 09:41:38
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-10-29 10:23:58
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
    'use strict'
    //   for(var j=0;j<5;j++){
    //     for(var i=0;i<5;i++){
    //         document.write('*');
    //     }
    //      document.write('<br />')
    //   }
    var dict_list = [
    {'科目':'政治', '成绩':98},
    {'科目':'语文', '成绩':77},
    {'科目':'数学', '成绩':99},
    {'科目':'历史', '成绩':65}
]
for(var i=dict_list.length-1;i>=0;i--){
    if(dict_list[i].成绩<70){
        dict_list.splice(i,1) // 你切的啥我返回啥 放到一个新的数组中
    }
}   

console.log(dict_list);

// function test(num,num1){

// }

    </script>
</body>
</html>